<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 18-3-1
 * Time: 下午5:24
 */

namespace common\models;


class ProxyPay extends \common\models\base\ProxyPay
{
    const STATUS_OK = 10;
    const STATUS_FAILED = 9;
    const STATUS_BACK = 8; // 退回
    const STATUS_SENDING = 7;
    const STATUS_TIMEOUT = 6;
    const STATUS_API_RETURN_ERROR = 5;
    const STATUS_API_RETURN_FAILED = 4;
    const STATUS_HAVENT_SENDING = 0;
//    const API_RETURN_CODE_SUCCESS = '000000';
//    const API_RETURN_CODE_ERROR = '999999';

    public static function getStatus()
    {
        return [
            self::STATUS_HAVENT_SENDING => '已经请求',
            self::STATUS_API_RETURN_FAILED => 'API回调失败',
            self::STATUS_API_RETURN_ERROR => 'API回调错误',
            self::STATUS_TIMEOUT => '超时',
            self::STATUS_SENDING => '正在请求',
            self::STATUS_BACK => '退回',
            self::STATUS_FAILED => '失败',
            self::STATUS_OK => '成功',
        ];
    }
}